﻿using System;
using HYRevitCode.ElementFilterUtility;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI.Selection;

namespace Assist
{
    public class CableTrayFilter : ISelectionFilter
    {
        bool ISelectionFilter.AllowElement(Element elem)
        {
            return elem is MEPCurve && elem.Category.Id.IntegerValue == -2008130;
        }

        bool ISelectionFilter.AllowReference(Reference reference, XYZ position)
        {
            return false;
        }
    }
}
